package com.zln.hello;

/**
 * 演示赋值运算符的使用
 */
public class AssignOperator {
    public static void main (String[] args){
        int n1 = 10;
        n1 += 4; //等价于 n1 = n1 +4;
        System.out.println(n1); // 14
        n1 /= 3;
        System.out.println(n1); // 4

        byte b = 2;
        b += 3;  // 等价于 b = (byte)(b+3)
        b++;
    }


}
